import request from '@/utils/request'

// 查询期权行情列表
export function listOptionQuotes(query) {
  return request({
    url: '/trade/optionQuotes/list',
    method: 'get',
    params: query
  })
}

// 查询期权行情详细
export function getOptionQuotes(id) {
  return request({
    url: '/trade/optionQuotes/' + id,
    method: 'get'
  })
}

// 新增期权行情
export function addOptionQuotes(data) {
  return request({
    url: '/trade/optionQuotes',
    method: 'post',
    data: data
  })
}

// 修改期权行情
export function updateOptionQuotes(data) {
  return request({
    url: '/trade/optionQuotes',
    method: 'put',
    data: data
  })
}

// 删除期权行情
export function delOptionQuotes(id) {
  return request({
    url: '/trade/optionQuotes/' + id,
    method: 'delete'
  })
}
